// Handles framerate and speed factor of game